home *** CD-ROM | disk | FTP | other *** search
/ Yotech / Yotech.iso / main.dir / 00016_Script_Hold on Current Frame < prev    next >
Text File  |  2004-01-30  |  805b  |  39 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return \
  5.     "HOLD ON CURRENT FRAME" & RETURN & RETURN & \
  6.     "Drop this behavior into the Script Channel of the Score or onto the Stage in order to keep the playback head in the current frame." & RETURN & RETURN & \
  7.     "PARAMETERS: None"
  8. end getBehaviorDescription
  9.  
  10.  
  11. on getBehaviorTooltip me
  12.   return \
  13.     "Frame behavior. " & \
  14.     "Holds the playback head still."
  15. end getBehaviorTooltip
  16.  
  17.  
  18.  
  19. -- HISTORY --
  20.  
  21. -- 3 November, written for the D7 Behaviors Palette by James Newton
  22. -- 5 January   2000: updated to D8 <km>
  23.  
  24.  
  25.  
  26. on exitFrame me
  27.   go the frame
  28. end exitFrame
  29.  
  30.  
  31. on isOKToAttach (me, aSpriteType, aSpriteNum)
  32.   
  33.   tIsOk = 0  
  34.   if aSpriteType = #script then   
  35.     tIsOK = 1
  36.   end if
  37.   
  38.   return(tIsOK)  
  39. end on